<template>
  <div class="empty">
    <img src="~@/assets/empty.svg" alt="暂无内容" style="height: 140px">
    <p v-if="showTitle">{{ title }}</p>
  </div>
</template>
<script>

export default {
  name: 'Empty',
  components: {
  },
  props: {
    title: {
      type: String,
      default: '暂无内容',
      required: false
    },
    showTitle: {
      type: Boolean,
      default: true,
      required: false
    }
  }
}
</script>
<style lang="scss" scoped>
.empty{
  margin: 32px 0;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  color:#e0e0e0;

  img{
    height: 40px;
  }

  p {
    margin: 0
  }
}
</style>
